<?php
namespace app\admin\controller;

use app\common\model\ClassKeep;
use app\service\CoachService;

class Keep extends Base
{
    /**
     * 考勤列表
     * @return \think\response\Json
     */
    public function keep()
    {
        if (request()->isPost()) {
            $data = input('');
            $page = input('page', 1);
            $size = input('size', 20);
            $where = [];
            if ($data['cid']) {
                $where['cid'] = $data['cid'];
            }
            $list = ClassKeep::getPage($where,$page,$size);
            if(!$list){
                $list = [];
            }
            return returnJson(200, '', compact('page', 'size', 'list', 'total'));
        }
    }

    public function create_keep()
    {
        if(request()->isPost()){
            $data = input('');
            $cids = $data['cids'];

        }
    }
}

